package com.zxjbyte.yiyi.module.plugin.job.handler;

import cn.hutool.core.thread.ThreadUtil;
import com.zxjbyte.yiyi.framework.quartz.handler.IJobHandler;
import org.springframework.stereotype.Component;

/**
 * @Author zhangxingjia
 * @Date 2023/11/9 11:22
 * @Version: 1.0
 */
@Component
public class TestJobHandler implements IJobHandler {

    @Override
    public void execute(Object... args) throws Exception {
        System.out.println("定时任务参数===== " + args[0]);
//        System.out.println(args[1]);
        ThreadUtil.sleep(2000);
//        int a = 1/0;
    }
}
